package com.youngjun.user.service.impl;

import com.youngjun.user.mapper.AllowAssignFunctionRoleMapper;
import com.youngjun.user.service.AllowAssignFunctionRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AllowAssignFunctionRoleServiceImpl implements AllowAssignFunctionRoleService {

    @Autowired
    AllowAssignFunctionRoleMapper allowAssignFunctionroleMapper;

    @Override
    public AllowAssignFunctionRoleMapper getMapper() {
        return allowAssignFunctionroleMapper;
    }

    @Override
    public void deleteWithLogicByFunctionId(Long functionId) {
        getMapper().deleteWithLogicByFunctionId(functionId);
    }

    @Override
    public void deleteWithLogicByRoleId(Long roleId) {
        getMapper().deleteWithLogicByRoleId(roleId);
    }

}